import { Suspense } from 'react'
import { createRoot } from 'react-dom/client'
import './index.css'
import { BrowserRouter } from 'react-router-dom'
import App from './App.tsx'
import { store } from './store/store.ts'
import { Provider } from 'react-redux'
createRoot(document.getElementById('root')!).render(
  <Provider store={store}>
    <Suspense fallback={<div>loading....</div>}>
      <BrowserRouter>
        <App />
      </BrowserRouter>
    </Suspense>
  </Provider>
)
